Skip to content

Conversation

@paleolimbot
Copy link
Contributor

@paleolimbot paleolimbot commented Jan 16, 2025

It's a monster of a union, but it does work:

import geoarrow.types as gt
import geoarrow.pyarrow as ga

ga.extension_type(gt.type_spec(gt.Encoding.GEOARROW, gt.GeometryType.GEOMETRY))
#> GeometryUnionType(geoarrow.geometry)

This PR adds enough support such that pyarrow should be able to import and export a geometry array produced by geoarrow-rs, and enough support that people can experiment with the type if they want to (but I'll leave other functionality up to future PRs 🙂 ).

@paleolimbot paleolimbot marked this pull request as ready for review January 17, 2025 16:28
@codecov
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

Attention: Patch coverage is 98.36066% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.29%. Comparing base (c13af05) to head (3586929).

Files with missing lines Patch % Lines
geoarrow-types/src/geoarrow/types/type_pyarrow.py 98.18% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   91.03%   91.29%   +0.26%     
==========================================
  Files          15       15              
  Lines        2074     2126      +52     
==========================================
+ Hits         1888     1941      +53     
+ Misses        186      185       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paleolimbot paleolimbot merged commit d75f8b2 into geoarrow:main Jan 22, 2025
8 checks passed
@paleolimbot paleolimbot deleted the pyarrow-union branch January 22, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant